package fr.cie.blog.domainservice;


import java.util.List;

import fr.cie.blog.beans.Card;
import fr.cie.blog.beans.Style;
import fr.cie.blog.modeldao.hib.StyleDaoImplHib;

/**
 * @author AetM
 * 
 */
public class ServiceStyleDao implements IServiceStyle {
	/**
	 * serviceStyleImpl.
	 */
	private final IServiceStyle serviceStyleImpl = new StyleDaoImplHib();

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#save(java.lang.Object)
	 */
	@Override
	public final int save(final Style style) {
		return serviceStyleImpl.save(style);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#delete(java.lang.Object)
	 */
	@Override
	public final int delete(final Style style) {
		return serviceStyleImpl.delete(style);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#findAll()
	 */
	@Override
	public final List<Style> findAll() {
		return serviceStyleImpl.findAll();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * fr.cie.blog.domainservice.IServiceStyle#findByCard(fr.cie.blog.beans.
	 * Card)
	 */
	@Override
	public final Style findByCard(final Card pCard) {
		return serviceStyleImpl.findByCard(pCard);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#findById(int)
	 */
	@Override
	public final Style findById(final long pIdentifier) {
		return serviceStyleImpl.findById(pIdentifier);
	}

	@Override
	public final Style findDefaultStyle() {
		return serviceStyleImpl.findDefaultStyle();
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.cie.blog.domainservice.IServiceGeneric#update(java.lang.Object)
	 */
	@Override
	public final int update(final Style style) {
		return serviceStyleImpl.update(style);
	}

	@Override
	public final Style findByName(final String pName) {
		return serviceStyleImpl.findByName(pName);
	}
}